<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <title>Url</title>
    <script type="text/javascript" language="javascript" src="../sfdcj/sfdcj.nocache.js"></script>
	<script type="text/javascript" language="javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>

	<!------------------------------------ Tool tip Plugin --------------------------------------------->
	<script src="jquery.hoverIntent.js" type="text/javascript"></script>
	<script src="jquery.bgiframe.min.js" type="text/javascript"></script>
	<script src="jquery.cluetip.js" type="text/javascript"></script>
	<script src="demo.js" type="text/javascript"></script>
	<link rel="stylesheet" href="jquery.cluetip.css" type="text/css" />
	<link rel="stylesheet" href="demo.css" type="text/css" />

	<!------------------------------------ Validation Plugin --------------------------------------------->
    <script language="javascript" type="text/javascript" src="jquery.validate.min.js"></script>
    <script language="javascript" type="text/javascript" src="messages_ja.js"></script>

	<script type="text/javascript"> 
	    $.validator.setDefaults({
            submitHandler: function() { closeChild(); }
         });
	
  		$(document).ready(function(){
    		$("#form-host").validate();
  		});
  		
		function closeChild() {
			var parameters = constrcutParameters();
			window.opener.document.getElementById("temp").value = parameters; 
			opener.window.callByChild();
			window.close();
		}

		function constrcutParameters() {
			var params = "precision:" + document.getElementById("precision").value + ";;"+ "scale:" + document.getElementById("scale").value
			return params;
		}
	
		
	</script>    
  </head>

  <body>
	<form method="POST" action="#"  id="form-host">

	<!------------------------------------ Modify here --------------------------------------------->
		<table cellspacing="5" cellpadding="5">
			<caption>パーセント</caption>
			<tr>
				<td>
					<a class="title" href="#" title="整数の桁数|数値の桁数と小数点の位置を入力してください。たとえば、桁数を 8、小数点位置を 2 とした場合、12345678.90 のような値を入力できます。">整数の桁数</a> 
				</td>
				<td>	
					<input type="text" name="precision" id="precision" class="required"  number="true">
				</td>
			</tr>
			<tr>
				<td>
					<a class="title" href="#" title="小数点以下の数値の桁数|数値の桁数と小数点の位置を入力してください。たとえば、桁数を 8、小数点位置を 2 とした場合、12345678.90 のような値を入力できます。">小数点以下の数値の桁数</a> 
				</td>
				<td>	
					<input type="text" name="scale" id="scale" class="required" number="true">
				</td>
			</tr>
			<tr>

				<td colspan="2" align="right">
					<input type="submit"  value="submit" />
				</td>
			</tr>
		</table>
	<!------------------------------------ Modify here --------------------------------------------->	
	
	</form>

  </body>
</html>